<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <div style="float: right; width=0%;">
        <table class="details" cellspacing="0">
            <tr>
                <th class="details">Enabled</th>
                <td class="details">
                    <logic:equal name="userValue" property="isEnabled" value="true">
                        <html:img page="/icons/enabled-16x16.png"/>
                    </logic:equal>
                    <logic:equal name="userValue" property="isEnabled" value="false">
                        <html:img page="/icons/disabled-16x16.png"/>
                    </logic:equal>
                </td>
            </tr>
            <tr>
                <th class="details">Person</th>
                <td class="details">
                    <html:link action="showNode.do" paramId="nodeId" paramName="userValue" paramProperty="personValue.contactableValue.nodeValue.nodeId">
                        <beans:write name="userValue" property="personValue.contactableValue.nodeValue.name"/>
                    </html:link>
                </td>
            </tr>
            <tr>
                <th class="details">Groups</th>
                <td class="details">
                    <logic:iterate name="groupValues" id="group">
                        <html:link action="showNode.do" paramId="nodeId" paramName="group" paramProperty="nodeValue.nodeId">
                            <beans:write name="group" property="nodeValue.name"/><br/>
                        </html:link>
                    </logic:iterate>
                </td>
            </tr>
            <tr>
                <th class="details">Show Bookmarks</th>
                <td class="details">
                    <logic:equal name="userValue" property="showBookmarks" value="true">
                        <html:img page="/icons/enabled-16x16.png"/>
                    </logic:equal>
                    <logic:equal name="userValue" property="showBookmarks" value="false">
                        <html:img page="/icons/disabled-16x16.png"/>
                    </logic:equal>
                </td>
            </tr>
        </table>
    </div>
    <img src="<html:rewrite page='/icons/user-32x32.png'/>"/><span class="node-name">User: <beans:write name="userValue" property="nodeValue.name"/></span>
    <p class="history">
        <span class="history-text">
            <velocityme:markup><beans:write name="userValue" property="nodeValue.description"/></velocityme:markup>
        </span>
    </p>
</div>
